<template>
    <div class="page">
        <div class="container">
            <image class="logo" src="/static/app/app.png" mode="" />
            <div class="u-m-20 text-center u-font-40">九天数藏</div>
            <div class="items u-m-t-50 u-m-b-50" @tap="i">
                <image src="./static/image/iphone.png" mode="" />
                苹果访问
            </div>
            <div class="items" @tap="a">
                <image src="./static/image/Android.png" mode="" />
                安卓版下载
            </div>
        </div>
        <div class="guidance" v-if="show">
            <image src="./static/image/weixin-tip.png" mode="widthfix" />
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            show: false,
        };
    },
    onShow() {
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.match(/_SQ_/i) == "_sq_") {
            this.show = true;
        }
    },
    methods: {
        i() {
			window.location.href = "http://cs.jtsc.art/index/user/download.html";
            // this.$u.toast("暂不支持下载");
        },
        a() {
            window.location.href = "https://img.ltsyr.com/jiutian-1.0.0.apk";
        },
    },
};
</script>

<style lang="less" scoped>
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .items {
            display: flex;
            align-items: center;
            height: 80rpx;
            margin-bottom: 20rpx;
            background: linear-gradient(270deg, #11e1e5, #135add);
            border-radius: 30rpx;
            justify-content: center;
            font-size: 24rpx;
            color: #fff;
            width: 400rpx;
            image {
                width: 50rpx;
                height: 50rpx;
                margin-right: 20rpx;
            }
        }
        .logo {
            width: 300rpx;
            height: 300rpx;
        }
    }
    .guidance {
        background: rgba(0, 0, 0, 0.8);
        text-align: center;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 998;
        image {
            width: 100%;
        }
    }
}
</style>
